package com.day18.ex04;

import java.io.*;

public class CopyJavaDemo01 {
    public static void main(String[] args)throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("myCharSream\\BufferedStreamDemo01.java"));
        BufferedWriter bw=new BufferedWriter(new FileWriter("myCharSream\\BufferedStreamDemo01.java"));
        char[] chs=new char[1024];
        int len;
        while ((len=br.read(chs))!=-1){
            bw.write(chs,0,len);
        }
        bw.close();
        br.close();
    }
}
